<?php
error_reporting(E_ALL);
set_include_path(get_include_path()
					.PATH_SEPARATOR."./database/models"
					.PATH_SEPARATOR."./database/models/generated"
					.PATH_SEPARATOR."./database/data/fixtures"
					.PATH_SEPARATOR."./database/data/sql"
					.PATH_SEPARATOR."./database/migrations"
					.PATH_SEPARATOR."./lib"
					);
					
require_once('./php_library/Doctrine.php');	
spl_autoload_register(array('Doctrine', 'autoload'));	

/*
Parameters added to generate Doctrine Table classes
*/
$parameters = array('generateTableClasses' => true);
		
Doctrine::generateModelsFromYaml('./database/schema/emirror.yml', './database/models', $parameters);
?>